import request from '@/utils/request.js'


/**
 * 余额充值
 * @param {*} data 
 */
export function add_money(data){
	return request({
		url:"/user/add_money",
		method:'post',
		data
	})
}

/**
 * 获取钱包信息
 * @param {*} data 
 */
export function getWalletInfo(data){
	return request({
		url:"/user/getWalletInfo",
		method:'post',
		data
	})
}





/**
 * 开户第一步发送短信验证码绑定手机
 */
export function sendMobileCodeForLL(){
	return request({
		url:'/order/Ll/blindMobile',
		method:"post"
	})
}



/**
 * 开户第二部短信验证绑定
 * @param {*} data 
 */
export function verifyMobileCodeForLL(data){
	return request({
		url:'/order/Ll/blindMobileCheck',
		method:"post",
		data
	})
}




/**
 * 补充信息，绑卡和身份证上传
 * @param {*} data 
 */
export function supplementInfo(data){
	return request({
		url:'/order/Ll/userApply',
		method:"post",
		data
	})
}


/*
 *获取开户信息
 */
export function getApply() {
	return request({
		url:`/order/Ll/getApply`,
		method: 'POST'

	})
}




/**
 * 连连短信确认
 * @param {*} data 
 */
export function orderSmsCheck(data){
	return request({
		url:'/order/pay/paySmsCheck',
		method:"post",
		data
	})
}

/**
 * 充值
 * @param {*} data 
 */
export function recharge(data){
	return request({
		url:'/order/pay/Recharge',
		method:'post',
		data
	})
}


/**
 * 提现
 * @param {*} data 
 */
export function withdrawal(data){
	return request({
		url:'/order/cash/applyCash',
		method:'post',
		data
	})
}


/**
 * 提现列表
 * @param {*} data 
 */
export function getWithdrawal(data){
	return request({
		url:'/order/cash/cashList',
		method:'post',
		data
	})
}

/**
 * 获取连连钱包明细
 * @param {*} data 
 */
export function getWalletDetailList(data){
	return request({
		url:'/user/getLlOrder',
		method:'post',
		data
	})
}


/**
 * 获取连连绑定银行卡列表
 * @param {*} data 
 */
export function getLLBankList(data){
	return request({
		url:'/user/getllbank',
		method:'post',
		data
	})
}


/**
 * 设置默认卡
 * @param {*} data 
 */
export function setLlDeaultBank(data){
	return request({
		url:'/user/setlldef',
		method:'post',
		data
	})
}




/**
 *获取钱包A信息 
 **/
export function getHuiFuInfo(){
	return request({
		url:'/wallet/huifu/wallet',
		method:'post',
	})
}



/**
 *开通钱包A
 **/
export function openHuiFu(){
	return request({
		url:'/wallet/huifu/openAccount',
		method:'post',
	})
}




/**
 *开通易宝
 **/
export function openYiBao(){
	return request({
		url:'/wallet/yibao/openAccount',
		method:'post',
	})
}


 
/**
 *开通钱包收手续费
 **/
export function CreateHuifuAccountOrder(){
	return request({
		url:'/order/pay/CreateHuifuAccountOrder',
		method:'post',
	})
}